

function FormatOperation(value,row,index){
    var peration ="";
    if(value=='3' || value=='2')
    {
        peration="<span class='btn btn-default' onclick='xiangqing("+JSON.stringify(row)+")'><i class='glyphicon glyphicon-edit'></i>详情</span>";
    }else{
        peration="<span class='btn btn-default' onclick='shenhe("+JSON.stringify(row)+")'><i class='glyphicon glyphicon-edit'></i>审核</span>";

    }
    return peration;
}
function FormatterState(value,row,index) {
    var name="";
    switch (value){
        case '0':
            name="待确认"
            break;
        case '1':
            name="已确认"
            break;
        case '2':
            name="未通过"
            break;
        case '3':
            name="通过"
            break;
    }
    return name;

}


function shenhe(row) {
    location="procurement/orderGenerate/shenhe?id="+row.purchaseNo;
}

function xiangqing(row) {
    location="procurement/orderGenerate/xiangqing?id="+row.purchaseNo;
}

